  /**
   * Generate time : 2013-08-28 9:57:15
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBBoringFollow 
 * table comment : 掘进接替信息表 
 */
public class ZMCBBoringFollow extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdForeignKey = " ";		/* 主键*/
	private String fdWorkfaceId = " ";		/* 对应采面ID*/
	private String fdNum = " ";		/* 施工顺序*/
	private String fdRoadwayId = " ";		/* 巷道ID*/
	private String fdNo = " ";		/* 巷道编号*/
	private String fdName = " ";		/* 巷道名称*/
	private String fdStatus = " ";		/* 巷道状态*/
	private String fdRoadwayType = " ";		/* 巷道类型*/
	private String fdDepartmentId = " ";		/* 施工部门*/
	private Double fdSurplusLength = new Double(0);		/* 剩余长度*/
	private Double fdMonthPlan = new Double(0);		/* 月计划推进*/
	private Double fdMonthOld = new Double(0);		/* 设计月计划推进*/
	private String fdIsPlan = "0";		/* 是否计划*/
	private String fdMineRock = " ";		/* 煤岩类别*/
	private Double fdTime = new Double(0);		/* 剩余施工时间*/
	private String fdProcessNo = " ";		/* 序号*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);	
	
	eiColumn = new EiColumn("fdProcessNo");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("工序序号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignKey");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkfaceId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("对应采面ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNum");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("施工顺序");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRoadwayId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("巷道ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("巷道编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("巷道名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("巷道状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余长度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthPlan");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("月计划推进");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthOld");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("设计月计划推进");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdIsPlan");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("是否计划");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRoadwayType");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("巷道类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMineRock");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("煤岩类别");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTime");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余施工时间");
	eiMetadata.addMeta(eiColumn);
	
	}
	/**
	 * the constructor
	 */
	public ZMCBBoringFollow() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdForeignKey - 主键
	 * @return the fdForeignKey
	 */
	public String getFdForeignKey() {
		return this.fdForeignKey;
	}
	
	/**
	 * set the fdForeignKey - 主键
	 */
	public void setFdForeignKey(String fdForeignKey) {
		this.fdForeignKey = fdForeignKey;
	}
	
	/**
	 * get the fdWorkfaceId - 对应采面ID
	 * @return the fdWorkfaceId
	 */
	public String getFdWorkfaceId() {
		return this.fdWorkfaceId;
	}
	
	/**
	 * set the fdWorkfaceId - 对应采面ID
	 */
	public void setFdWorkfaceId(String fdWorkfaceId) {
		this.fdWorkfaceId = fdWorkfaceId;
	}
	
	/**
	 * get the fdNum - 施工顺序
	 * @return the fdNum
	 */
	public String getFdNum() {
		return this.fdNum;
	}
	
	/**
	 * set the fdNum - 施工顺序
	 */
	public void setFdNum(String fdNum) {
		this.fdNum = fdNum;
	}
	
	/**
	 * get the fdProcessNo - 工序序号
	 * @return the fdRoadwayId
	 */
	public String getFdProcessNo() {
		return this.fdProcessNo;
	}
	
	/**
	 * set the fdProcessNo - 工序序号
	 */
	public void setFdProcessNo(String fdProcessNo) {
		this.fdProcessNo = fdProcessNo;
	}

	/**
	 * get the fdNo - 巷道编号
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 巷道编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 巷道名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 巷道名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdRoadwayId - 巷道ID
	 * @return the fdRoadwayId
	 */
	public String getFdRoadwayId() {
		return this.fdRoadwayId;
	}
	
	/**
	 * set the fdRoadwayId - 巷道ID
	 */
	public void setFdRoadwayId(String fdRoadwayId) {
		this.fdRoadwayId = fdRoadwayId;
	}
	
	/**
	 * get the fdStatus - 巷道状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 巷道状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdRoadwayType - 巷道类型
	 * @return the fdRoadwayType
	 */
	public String getFdRoadwayType() {
		return this.fdRoadwayType;
	}
	
	/**
	 * set the fdRoadwayType - 巷道类型
	 */
	public void setFdRoadwayType(String fdRoadwayType) {
		this.fdRoadwayType = fdRoadwayType;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdSurplusLength - 剩余长度
	 * @return the fdSurplusLength
	 */
	public Double getFdSurplusLength() {
		return this.fdSurplusLength;
	}
	
	/**
	 * set the fdSurplusLength - 剩余长度
	 */
	public void setFdSurplusLength(Double fdSurplusLength) {
		this.fdSurplusLength = fdSurplusLength;
	}
	
	/**
	 * get the fdMonthPlan - 月计划推进
	 * @return the fdMonthPlan
	 */
	public Double getFdMonthPlan() {
		return this.fdMonthPlan;
	}
	
	/**
	 * set the fdMonthPlan - 月计划推进
	 */
	public void setFdMonthPlan(Double fdMonthPlan) {
		this.fdMonthPlan = fdMonthPlan;
	}
	
	/**
	 * get the fdMonthOld- 设计月计划推进
	 * @return the fdMonthOld
	 */
	public Double getFdMonthOld() {
		return this.fdMonthOld;
	}
	
	/**
	 * set the fdMonthOld - 设计月计划推进
	 */
	public void setFdMonthOld(Double fdMonthOld) {
		this.fdMonthOld = fdMonthOld;
	}
	
	/**
	 * get the fdIsPlan - 是否计划
	 * @return the fdIsPlan
	 */
	public String getFdIsPlan() {
		return this.fdIsPlan;
	}
	
	/**
	 * set the fdIsPlan - 是否计划
	 */
	public void setFdIsPlan(String fdIsPlan) {
		this.fdIsPlan = fdIsPlan;
	}
	
	/**
	 * get the fdMineRockId - 煤岩别
	 * @return the fdMineRockId
	 */
	public String getFdMineRock() {
		return this.fdMineRock;
	}
	
	/**
	 * set the fdMineRockId - 煤岩别ID
	 */
	public void setFdMineRock(String fdMineRock) {
		this.fdMineRock = fdMineRock;
	}
	
	/**
	 * get the fdSurplusLength - 剩余施工时间
	 * @return the fdSurplusLength
	 */
	public Double getFdTime() {
		return this.fdTime;
	}
	
	/**
	 * set the fdTime - 剩余施工时间
	 */
	public void setFdTime(Double fdTime) {
		this.fdTime = fdTime;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdForeignKey(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignKey")), fdForeignKey));
		setFdWorkfaceId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkfaceId")), fdWorkfaceId));
		setFdNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNum")), fdNum));
		setFdRoadwayId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRoadwayId")), fdRoadwayId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdSurplusLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplusLength")), fdSurplusLength));
		setFdMonthPlan(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthPlan")), fdMonthPlan));
		setFdMonthOld(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthOld")), fdMonthOld));
		setFdIsPlan(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsPlan")), fdIsPlan));
		setFdRoadwayType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRoadwayType")), fdRoadwayType));
		setFdMineRock(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMineRock")), fdMineRock));
		setFdTime(NumberUtils.toDouble(StringUtils.toString(map.get("fdTime")), fdTime));
		setFdProcessNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProcessNo")), fdProcessNo));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdForeignKey",StringUtils.toString(fdForeignKey, eiMetadata.getMeta("fdForeignKey")));	
			map.put("fdWorkfaceId",StringUtils.toString(fdWorkfaceId, eiMetadata.getMeta("fdWorkfaceId")));	
			map.put("fdNum",StringUtils.toString(fdNum, eiMetadata.getMeta("fdNum")));	
			map.put("fdRoadwayId",StringUtils.toString(fdRoadwayId, eiMetadata.getMeta("fdRoadwayId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdSurplusLength",StringUtils.toString(fdSurplusLength, eiMetadata.getMeta("fdSurplusLength")));	
			map.put("fdMonthPlan",StringUtils.toString(fdMonthPlan, eiMetadata.getMeta("fdMonthPlan")));	
			map.put("fdMonthOld",StringUtils.toString(fdMonthOld, eiMetadata.getMeta("fdMonthOld")));
			map.put("fdIsPlan",StringUtils.toString(fdIsPlan, eiMetadata.getMeta("fdIsPlan")));
			map.put("fdRoadwayType",StringUtils.toString(fdRoadwayType, eiMetadata.getMeta("fdRoadwayType")));
			map.put("fdMineRock",StringUtils.toString(fdMineRock, eiMetadata.getMeta("fdMineRock")));
			map.put("fdTime",StringUtils.toString(fdTime, eiMetadata.getMeta("fdTime")));
			map.put("fdProcessNo",StringUtils.toString(fdProcessNo, eiMetadata.getMeta("fdProcessNo")));
			
		return map;
	
	}
}